package com.niiwoo.civet.trade.enums;

import com.niiwoo.tripod.provider.exception.NoSuchEnumValueException;
/**
 * 投资筛选配置 - 产品类型
 */
public enum InvestStdProductTypeEnum {
    CREDIT((byte) 1, "散标"),
    /*MORTGAGE((byte) 2, "抵押标"),*/
    TRANSFER((byte) 3, "转让区"),
    INITIATE_TRANSFER((byte) 4, "发起转让"),
    ;

    public final Byte value;
    public final String desc;

    InvestStdProductTypeEnum(Byte value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public Byte getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    public static InvestStdProductTypeEnum enumOf(Byte value) {
        for (InvestStdProductTypeEnum investStdProductTypeEnum : values()) {
            if (investStdProductTypeEnum.value.equals(value)) {
                return investStdProductTypeEnum;
            }
        }
        throw new NoSuchEnumValueException("InvestStdProductTypeEnum:" + value);
    }
}
